package svc

import (
	"github.com/zeromicro/go-zero/zrpc"
	"yim_server/yim_file/file_api/internal/config"
	"yim_server/yim_file/file_rpc/filerpc"
)

type ServiceContext struct {
	Config  config.Config
	FileRpc filerpc.FileRpc
}

func NewServiceContext(c config.Config) *ServiceContext {
	return &ServiceContext{
		Config:  c,
		FileRpc: filerpc.NewFileRpc(zrpc.MustNewClient(c.FileRpc)),
	}
}
